<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>{{$users->user_name}}的主页 - 夜读书</title>
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <meta name="author" content="夜读书">
    <meta name="description" content="{{$users->user_name}}的主页">
    <meta name="keywords" content="夜读书">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/mobile.css') }}">    
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('mobile.nav')
<div id="uhome">

    @if($users->sex == 1)
        <?php $sex_ico = 'images/ico/male.png'; ?>
    @elseif($users->sex == 2)
        <?php $sex_ico = 'images/ico/female.png'; ?>
    @else
        <?php $sex_ico = 'images/ico/sex_unknow.png'; ?>
    @endif
    <div class="header">
        <div class="face">
        @if($users->avatar_file != '')
            <img src="http://www.yedushu.com/{{$users->avatar_file}}"></img>
        @else
            <img src="http://www.yedushu.com/usersface/default/avatar-max.png"></img>
        @endif
        </div>
        <div class="name">
        {{$users->user_name}}
        <img src="{{url($sex_ico)}}"></img>
        </div>
        <div class="uinfo">书币:{{$users->shubi}} <a href="{{url('mobile/zhitiao/'. $users->uid)}}"><span style="color: #fff;padding-left: 10px;">发纸条</span></a></div>
    </div>

    @if($users->sex == 1)
        <?php $sex = '他'; ?>
    @elseif($users->sex == 2)
        <?php $sex = '她'; ?>
    @else
        <?php $sex = 'Ta'; ?>
    @endif
    <div class="mydushu item">
        <div class="mytitle">{{$sex}}的读书</div>
        <a href="{{url('mobile/readstate/2/' . $users->uid)}}">
        <div class="sz">
            <span>{{$sex}}正在读的书</span><span style="float:right;">{{$reading}}</span>
        </div>
        </a>
        <a href="{{url('mobile/readstate/1/' . $users->uid)}}">
        <div class="sz"><span>{{$sex}}想读的书</span><span style="float:right;">{{$readwant}}</div></a>
        <a href="{{url('mobile/readstate/3/' . $users->uid)}}">
        <div class="sz"><span>{{$sex}}读过的书</span><span style="float:right;">{{$readed}}</div>
        </a>
    </div>

    <div class="myshop item">
        <div class="mytitle">{{$sex}}的书城</div>
        <a href="{{url('mobile/ushop/' . $users->uid)}}">
        <div class="sz">
            <span>{{$sex}}转让中的书</span><span style="float:right;">{{$bagscount}}</span>
        </div>
        </a>
    </div>
        
</div> 

@include('mobile.footer')
</body>
</html>